home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / issperr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  7.6 KB  |  351 lines

  1. /*++
  2.  
  3. Copyright (c) 1992-1998 Microsoft Corporation
  4.  
  5. Module Name: issperr.h
  6.  
  7. Purpose: Security HRESULT status definitions.
  8.  
  9. --*/
  10.  
  11. #ifndef _ISSPERR_H_
  12. #define _ISSPERR_H_
  13. // Define the status type.
  14.  
  15. #ifdef FACILITY_SECURITY
  16. #undef FACILITY_SECURITY
  17. #endif
  18.  
  19. #ifdef STATUS_SEVERITY_SUCCESS
  20. #undef STATUS_SEVERITY_SUCCESS
  21. #endif
  22.  
  23. #ifdef STATUS_SEVERITY_COERROR
  24. #undef STATUS_SEVERITY_COERROR
  25. #endif
  26.  
  27. //
  28. // Define standard security success code
  29. //
  30.  
  31. #define SEC_E_OK                         ((HRESULT)0x00000000L)
  32.  
  33. // Define the severities
  34. //
  35. //  Values are 32 bit values layed out as follows:
  36. //
  37. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  38. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  39. //  +---+-+-+-----------------------+-------------------------------+
  40. //  |Sev|C|R|     Facility          |               Code            |
  41. //  +---+-+-+-----------------------+-------------------------------+
  42. //
  43. //  where
  44. //
  45. //      Sev - is the severity code
  46. //
  47. //          00 - Success
  48. //          01 - Informational
  49. //          10 - Warning
  50. //          11 - Error
  51. //
  52. //      C - is the Customer code flag
  53. //
  54. //      R - is a reserved bit
  55. //
  56. //      Facility - is the facility code
  57. //
  58. //      Code - is the facility's status code
  59. //
  60. //
  61. // Define the facility codes
  62. //
  63. #define FACILITY_SECURITY                0x9
  64.  
  65.  
  66. //
  67. // Define the severity codes
  68. //
  69. #define STATUS_SEVERITY_SUCCESS          0x0
  70. #define STATUS_SEVERITY_COERROR          0x2
  71.  
  72.  
  73. //
  74. // MessageId: SEC_E_INSUFFICIENT_MEMORY
  75. //
  76. // MessageText:
  77. //
  78. //  Not enough memory is available to complete this request
  79. //
  80. #define SEC_E_INSUFFICIENT_MEMORY        ((HRESULT)0x80090300L)
  81.  
  82. //
  83. // MessageId: SEC_E_INVALID_HANDLE
  84. //
  85. // MessageText:
  86. //
  87. //  The handle specified is invalid
  88. //
  89. #define SEC_E_INVALID_HANDLE             ((HRESULT)0x80090301L)
  90.  
  91. //
  92. // MessageId: SEC_E_UNSUPPORTED_FUNCTION
  93. //
  94. // MessageText:
  95. //
  96. //  The function requested is not supported
  97. //
  98. #define SEC_E_UNSUPPORTED_FUNCTION       ((HRESULT)0x80090302L)
  99.  
  100. //
  101. // MessageId: SEC_E_TARGET_UNKNOWN
  102. //
  103. // MessageText:
  104. //
  105. //  The specified target is unknown or unreachable
  106. //
  107. #define SEC_E_TARGET_UNKNOWN             ((HRESULT)0x80090303L)
  108.  
  109. //
  110. // MessageId: SEC_E_INTERNAL_ERROR
  111. //
  112. // MessageText:
  113. //
  114. //  The Local Security Authority cannot be contacted
  115. //
  116. #define SEC_E_INTERNAL_ERROR             ((HRESULT)0x80090304L)
  117.  
  118. //
  119. // MessageId: SEC_E_SECPKG_NOT_FOUND
  120. //
  121. // MessageText:
  122. //
  123. //  The requested security package does not exist
  124. //
  125. #define SEC_E_SECPKG_NOT_FOUND           ((HRESULT)0x80090305L)
  126.  
  127. //
  128. // MessageId: SEC_E_NOT_OWNER
  129. //
  130. // MessageText:
  131. //
  132. //  The caller is not the owner of the desired credentials
  133. //
  134. #define SEC_E_NOT_OWNER                  ((HRESULT)0x80090306L)
  135.  
  136. //
  137. // MessageId: SEC_E_CANNOT_INSTALL
  138. //
  139. // MessageText:
  140. //
  141. //  The security package failed to initialize, and cannot be installed
  142. //
  143. #define SEC_E_CANNOT_INSTALL             ((HRESULT)0x80090307L)
  144.  
  145. //
  146. // MessageId: SEC_E_INVALID_TOKEN
  147. //
  148. // MessageText:
  149. //
  150. //  The token supplied to the function is invalid
  151. //
  152. #define SEC_E_INVALID_TOKEN              ((HRESULT)0x80090308L)
  153.  
  154. //
  155. // MessageId: SEC_E_CANNOT_PACK
  156. //
  157. // MessageText:
  158. //
  159. //  The security package is not able to marshall the logon buffer,
  160. //  so the logon attempt has failed
  161. //
  162. #define SEC_E_CANNOT_PACK                ((HRESULT)0x80090309L)
  163.  
  164. //
  165. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  166. //
  167. // MessageText:
  168. //
  169. //  The per-message Quality of Protection is not supported by the
  170. //  security package
  171. //
  172. #define SEC_E_QOP_NOT_SUPPORTED          ((HRESULT)0x8009030AL)
  173.  
  174. //
  175. // MessageId: SEC_E_NO_IMPERSONATION
  176. //
  177. // MessageText:
  178. //
  179. //  The security context does not allow impersonation of the client
  180. //
  181. #define SEC_E_NO_IMPERSONATION           ((HRESULT)0x8009030BL)
  182.  
  183. //
  184. // MessageId: SEC_E_LOGON_DENIED
  185. //
  186. // MessageText:
  187. //
  188. //  The logon attempt failed
  189. //
  190. #define SEC_E_LOGON_DENIED               ((HRESULT)0x8009030CL)
  191.  
  192. //
  193. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  194. //
  195. // MessageText:
  196. //
  197. //  The credentials supplied to the package were not
  198. //  recognized
  199. //
  200. #define SEC_E_UNKNOWN_CREDENTIALS        ((HRESULT)0x8009030DL)
  201.  
  202. //
  203. // MessageId: SEC_E_NO_CREDENTIALS
  204. //
  205. // MessageText:
  206. //
  207. //  No credentials are available in the security package
  208. //
  209. #define SEC_E_NO_CREDENTIALS             ((HRESULT)0x8009030EL)
  210.  
  211. //
  212. // MessageId: SEC_E_MESSAGE_ALTERED
  213. //
  214. // MessageText:
  215. //
  216. //  The message supplied for verification has been altered
  217. //
  218. #define SEC_E_MESSAGE_ALTERED            ((HRESULT)0x8009030FL)
  219.  
  220. //
  221. // MessageId: SEC_E_OUT_OF_SEQUENCE
  222. //
  223. // MessageText:
  224. //
  225. //  The message supplied for verification is out of sequence
  226. //
  227. #define SEC_E_OUT_OF_SEQUENCE            ((HRESULT)0x80090310L)
  228.  
  229. //
  230. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  231. //
  232. // MessageText:
  233. //
  234. //  No authority could be contacted for authentication.
  235. //
  236. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((HRESULT)0x80090311L)
  237.  
  238. //
  239. // MessageId: SEC_I_CONTINUE_NEEDED
  240. //
  241. // MessageText:
  242. //
  243. //  The function completed successfully, but must be called
  244. //  again to complete the context
  245. //
  246. #define SEC_I_CONTINUE_NEEDED            ((HRESULT)0x00090312L)
  247.  
  248. //
  249. // MessageId: SEC_I_COMPLETE_NEEDED
  250. //
  251. // MessageText:
  252. //
  253. //  The function completed successfully, but CompleteToken
  254. //  must be called
  255. //
  256. #define SEC_I_COMPLETE_NEEDED            ((HRESULT)0x00090313L)
  257.  
  258. //
  259. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  260. //
  261. // MessageText:
  262. //
  263. //  The function completed successfully, but both CompleteToken
  264. //  and this function must be called to complete the context
  265. //
  266. #define SEC_I_COMPLETE_AND_CONTINUE      ((HRESULT)0x00090314L)
  267.  
  268. //
  269. // MessageId: SEC_I_LOCAL_LOGON
  270. //
  271. // MessageText:
  272. //
  273. //  The logon was completed, but no network authority was
  274. //  available.  The logon was made using locally known information
  275. //
  276. #define SEC_I_LOCAL_LOGON                ((HRESULT)0x00090315L)
  277.  
  278. //
  279. // MessageId: SEC_E_BAD_PKGID
  280. //
  281. // MessageText:
  282. //
  283. //  The requested security package does not exist
  284. //
  285. #define SEC_E_BAD_PKGID                  ((HRESULT)0x80090316L)
  286.  
  287. //
  288. // MessageId: SEC_E_CONTEXT_EXPIRED
  289. //
  290. // MessageText:
  291. //
  292. //  The context has expired and can no longer be used.
  293. //
  294. #define SEC_E_CONTEXT_EXPIRED            ((HRESULT)0x80090317L)
  295.  
  296. //
  297. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  298. //
  299. // MessageText:
  300. //
  301. //  The supplied message is incomplete.  The signature was not verified.
  302. //
  303. #define SEC_E_INCOMPLETE_MESSAGE         ((HRESULT)0x80090318L)
  304.  
  305. //
  306. // MessageId: SEC_E_INCOMPLETE_CREDENTIALS
  307. //
  308. // MessageText:
  309. //
  310. //  The credentials supplied were not complete, and could not be verified.  The
  311. //  context could not be initialized.
  312. //
  313. #define SEC_E_INCOMPLETE_CREDENTIALS     ((HRESULT)0x80090320L)
  314.  
  315. //
  316. // MessageId: SEC_E_BUFFER_TOO_SMALL
  317. //
  318. // MessageText:
  319. //
  320. //  The buffers supplied to a function was too small.
  321. //
  322. #define SEC_E_BUFFER_TOO_SMALL           ((HRESULT)0x80090321L)
  323.  
  324. //
  325. // MessageId: SEC_I_INCOMPLETE_CREDENTIALS
  326. //
  327. // MessageText:
  328. //
  329. //  The credentials supplied were not complete, and could not be verified.
  330. //  Additional information can be returned from the context.
  331. //
  332. #define SEC_I_INCOMPLETE_CREDENTIALS     ((HRESULT)0x00090320L)
  333.  
  334. //
  335. // MessageId: SEC_I_RENEGOTIATE
  336. //
  337. // MessageText:
  338. //
  339. //  The context data must be renegotiated with the peer.
  340. //
  341. #define SEC_I_RENEGOTIATE                ((HRESULT)0x00090321L)
  342.  
  343. //
  344. // Provided for backwards compatibility
  345. //
  346.  
  347. #define SEC_E_NO_SPM SEC_E_INTERNAL_ERROR
  348. #define SEC_E_NOT_SUPPORTED SEC_E_UNSUPPORTED_FUNCTION
  349.  
  350. #endif // _ISSPERR_H_
  351.